<div class="page-content" >
	<div class="panel panel-default">
		<div class="panel-heading">上传字幕</div>
		<div class="panel-body">
			  <form id="myform" method="post" enctype="multipart/form-data" class="form-horizontal" action="<{:U('add_do')}>">
                   
                     
                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">类型</label>
                                <div class="col-sm-7">
                                   <select name="word_type">
                                       <option value="1">英语/中文</option>
									   <option value="2">中文/英语</option>
                                   </select>
                                    
                                </div>
                            </div>
							
							 <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">文件类型</label>
                                <div class="col-sm-7">
                                   <select name="file_type">
                                       <option value="1">ass</option>
									   <option value="2">srt</option>
                                   </select>
                                    
                                </div>
                            </div>
                     
                            

                              
                            <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">字幕名称</label>
                                <div class="col-sm-7">
								 <input  type="text" value="" name="section"  class="form-control" />
                                </div>
                            </div>
							
							 <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">目录名</label>
                                <div class="col-sm-7">
								 <input  type="text" value="" name="path"  class="form-control" />
                                </div>
                            </div>
							
							 <div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">一段时长</label>
                                <div class="col-sm-7">
								 <select name="minute">
                                       <option value="10">10分钟</option>
									   <option value="15">15分钟</option>
									   <option value="20">20分钟</option>
                                   </select>
								
                                </div>
                            </div>
							
							
							<div class="form-group">
                                <label for="input-title" class="col-sm-2 control-label">选择文件</label>
                                <div class="col-sm-7">
								 <input  type="file" name="file" />
                                </div>
                            </div>
							
                             
                            
                            
                            
                             <div class="form-group">
					<div class="col-sm-offset-2 col-sm-7">
						<button type="submit" class="btn btn-primary">保存</button>
					</div>
				</div>

                          
                     </form>
		</div>
	</div>
</div>

<script>
 
$(function(){
    $(".form-horizontal").bootstrapValidator({
        message: '您填入的值不合法',
        fields:{
            section: {
                message: '名称',
                validators: {
                    notEmpty: {
                        message: '名称不能为空'
                    },
                }
            },
			
        }
    });
	
 
});
 </script>

 